from django.urls import re_path

from xyz.views import user, channels, article, img
from .views import verification

urlpatterns = [
    re_path(r'^sms_codes/(?P<mobile>\d+)/$', verification.VerificationView.as_view()),
    re_path(r'^upload/avatar/$', img.UserTXView.as_view()),
    re_path(r'^upload/common/$', img.UploadCommonView.as_view()),

    re_path(r'^users/$', user.UserRegiestView.as_view()),
    re_path(r'^authorizations/$', user.UserLoginView.as_view()),

    re_path(r'^channels/$', channels.ChannelsView.as_view()),

    re_path(r'^article/(?P<id>[+-]?\d+(\.\d*)?|[+-]?\.\d+)/channel/$', article.ArticlelInfoView.as_view()),
    re_path(r'^article/(?P<id>\d+)/collect/$', article.ArticlelCollectView.as_view()),
]
